-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix python formatting everywhere #1837
Conversation
Overall readability score: 54.45 (🟢 +0)
View detailed metrics🟢 - Shows an increase in readability
Averages:
View metric targets
|
79d6835
to
3484bd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow this is amazing!! LGTM with just one concern about multi-line credential placeholders.
Fantastic job on this, this will help so much!!
@@ -448,10 +448,11 @@ Get an [`DigitalInterrupt`](#digital_interrupts) by `name.` | |||
For more information, see the [Python SDK Docs](https://python.viam.dev/autoapi/viam/components/board/index.html#viam.components.board.Board.digital_interrupt_by_name). | |||
|
|||
```python | |||
my_board = Board.from_robot(robot=robot, name=) | |||
my_board = Board.from_robot(robot=robot, name="my_board") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! No way flake8
caught this one???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it did tell me there was an error - I did manually have to fix it though
@@ -133,7 +133,7 @@ frame = await my_cam.get_image() | |||
|
|||
# Convert "frame" to a standard 2D image representation. | |||
# Remove the 1st 3x8 bytes and reshape the raw bytes to List[List[Int]]. | |||
standard_frame frame.bytes_to_depth_array() | |||
standard_frame = frame.bytes_to_depth_array() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This too! Surely this is naomi8
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flake8 says error - naomi fixes
await start.set_power(.8) | ||
await asyncio.sleep(0.1) | ||
if (await GPIO.get()) == False: | ||
if not (await GPIO.get()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I like this tool!
@@ -294,10 +295,10 @@ Copy this code and add it to your own code within the main function block: | |||
```python {class="line-numbers linkable-line-numbers"} | |||
while True: | |||
print(party_return_value.get()) | |||
while (await party_return_value.get()) == True: | |||
while (await party_return_value.get()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the word is pythonic
Co-authored-by: andf-viam <[email protected]>
Co-authored-by: JessamyT <[email protected]>
You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/6e3895f90a52b7a412659a363e57d2fc243cf83f/public |
No description provided.